<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /*
            语句
            条件表达式?语句一：语句二；

        */
        var a=10,b=20;
        a>b?alert("a大"):alert("b大");
        var max=a>b?a:b;
        console.log("max="+max);

    </script>
</head>
<body>
    
</body>
</html>